package com.sui.bigdata.flink.sql.function.util;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * @author LiuHuan
 * @date 2019/9/5 15:28
 * @description
 * @reviewer
 */
public class NameUnusualUtil {
    private Map<String,Integer> groups = new HashMap<String, Integer>();
    private int count = 0;

    public Set<String> getRepetition() {
        return repetition;
    }

    public void setRepetition(Set<String> repetition) {
        this.repetition = repetition;
    }

    private Set<String> repetition=new HashSet<>();

    public Map<String, Integer> getGroups() {
        return groups;
    }

    public void setGroups(Map<String, Integer> groups) {
        this.groups = groups;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
    public Boolean exitsName(String val) {
        return this.repetition.contains(val)?true:false;
    }

    public void addName(String val) {
        this.repetition.add(val);
    }
}
